package com.sicau.entity.dto;

import java.util.ArrayList;
import java.util.List;

public class Composer {
    private String id;//创作者id（唯一编号）
    private String userName;//用户名（昵称）
    private String password;//密码
    private String status;//账户状态：0（账号关闭）、1（账户开启）、2（新注册）
    private String referee;//推荐人
    private String managerId;//管理员id
    private String groupName;//管理组名称

    /*one关联对象*/
//    private Manager manager;//管理员

    /*个人信息外键对象*/
    private PersonalInfo personalInfo = new PersonalInfo();

    /*任务信息*/
    private List<TaskInfo> taskInfos = new ArrayList<>();


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getReferee() {
        return referee;
    }

    public void setReferee(String referee) {
        this.referee = referee;
    }

    public PersonalInfo getPersonalInfo() {
        return personalInfo;
    }

    public void setPersonalInfo(PersonalInfo personalInfo) {
        this.personalInfo = personalInfo;
    }

    public List<TaskInfo> getTaskInfos() {
        return taskInfos;
    }

    public void setTaskInfos(List<TaskInfo> taskInfos) {
        this.taskInfos = taskInfos;
    }

    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public Composer(String id, String password) {
        this.id = id;
        this.password = password;
    }

    public Composer() {
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    @Override
    public String toString() {
        return "Composer{" +
                "id='" + id + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", status='" + status + '\'' +
                ", referee='" + referee + '\'' +
                ", managerId='" + managerId + '\'' +
                ", groupName='" + groupName + '\'' +
                ", personalInfo=" + personalInfo +
                ", taskInfos=" + taskInfos +
                '}';
    }
}
